package com.gegao.prototype;

/**
 * Created by zhangzhanzhong on 2015/12/30.
 */
public class Resume implements Cloneable {

    private String name;
    private String sex;
    private String age;
    private String timeArea;
    private String company;

    public Resume(String name) {
        this.name = name;
    }

    //设置个人信息
    public void setPersonalInfo(String sex, String age) {
        this.sex = sex;
        this.age = age;
    }

    //设置工作经历
    public void setWorkExperience(String timeArea, String company) {
        this.timeArea = timeArea;
        this.company = company;
    }

    //显示
    public void display() {
        System.out.printf("%s %s %s\n", this.name, this.sex, this.age);
        System.out.printf("工作经历: %s %s\n", this.timeArea, this.company);
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
